import React, { Component } from 'react'
import buttonHOC from './ButtonHOC';

class CommButton extends Component {
    // 公共的Button模板
    render() {
        // console.log(this);
        const { name, handleClick } = this.props;

        return <button onClick={ handleClick }>{ name }</button>
    }
}

export default buttonHOC(CommButton);